package com.tubi.log4jDemo.demo1;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class demo1 {

    //获取日志对象
    //弊端 后续修改会跟着修改 不推荐
    //private  static  final Logger LOGGER = Logger.getLogger(demo1.class);

    //推荐
    private  static  final Logger LOGGER = LoggerFactory.getLogger(demo1.class);

    public static void main(String[] args) {


        LOGGER.debug("debug级别日志");
        LOGGER.info("info级别日志");
        LOGGER.warn("warn级别日志");
        LOGGER.error("error级别日志");
    }
}
